package com.crm.uilt;

/**
 * @author zjd
 * @Title:
 * @Description:
 * @date 2021/4/718:29
 */
import java.util.HashMap;
import java.util.Map;

public class Moudle {

    public static final int LOGIN = 1;
    public static final int DATA = 2;
    public static final int USER = 3;
    // TODO more moudles

    private static final Map<Integer, String> moudleMap = new HashMap<>();
    static {
        moudleMap.put(Moudle.LOGIN, "登录");
        moudleMap.put(Moudle.DATA, "业务数据");
        moudleMap.put(Moudle.USER, "用户");
    }

    public static String getNameByCode(int code) {
        return moudleMap.get(code);
    }
}

